package com.example.demo.mapper;

import com.example.demo.entity.vo.ArticleInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    // 查询文章
    ArticleInfoVO getDetail(@Param("id") Integer id);

    List<ArticleInfoVO> getArticleListByUid(@Param("uid") Integer uid);

    List<ArticleInfoVO> getListByIdOrTitle(@Param("id") Integer id,
                                           @Param("title") String title);

    int delByIdList(List<Integer> ids);
}
